
export default [
  {
    path: '/',
    redirect: '/todo'
  },
  {
    path: '/todo/:id',
    // props: true,
    component: () => import('../src/page/Todo.vue'),
    meta: {
      title: 'test',
      description: 'test desc'
    },
    beforeEnter: (to, from, next) => {
      console.log('todo route before enter')
      next()
    }
    // 子路由
    // children: [
    //   {
    //     path: 'test',
    //     component: () => import('../src/page/Login.vue')
    //   }
    // ]
  },
  {
    path: '/login',
    component: () => import('../src/page/Login.vue')
  }
]
